import {Doc} from '../../models/Doc';
export class AddDocDto{
  static toDoc(body:any):Doc
  {
    var doc:Doc = new Doc();
    doc.name = body.name;
    doc.action = body.action;
    doc.description = body.description;
    doc.project = body.projectId;
    doc.params = body.params;
    doc.resps = body.resps;
    doc.group = body.groupId;
    doc.httpMethod = body.httpMethod;
    doc.url = body.url;
    return doc;
  }
}
